package com.example.mybatisplus.dynamic.service;

import com.example.mybatisplus.dynamic.domain.User;
import com.example.mybatisplus.dynamic.mapper.DynamicDataSourceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @Author longdeng
 * @Date 2020/9/22 0022 22:31
 */
@Component
public class DynamicDataSourceSerivce {

    @Autowired
    private DynamicDataSourceMapper dynamicDataSourceMapper;


    public List<User> queryDs1(Map<String, Object> map) {
        return dynamicDataSourceMapper.queryDs1(map);
    }


    public List<User> queryDs2(Map<String, Object> map) {
        return dynamicDataSourceMapper.queryDs2(map);
    }
}
